﻿namespace IceDog.DNF.Program.Command.Newtonsoft.Json.Models
{
    public class Employee
    {
        public string Name { get; set; }
        public Employee Manager { get; set; }

        //Json.Net会解析ShouldSerialize前缀的方法
        public bool ShouldSerializeManager()
        {
            // don't serialize the Manager property if an employee is their own manager
            return (Manager != this);
        }
    }
}
